package com.wolfstreet.wsonline;

import java.text.DecimalFormat;


import android.net.Uri;

/**
 * 常量类
 * 
 * @author sy
 * 
 */
public class Constant {

	/**
	 * 格式化对象
	 */
	public static DecimalFormat formater = new DecimalFormat("#.#");

	/**
	 * 服务器地址
	 */
	// public static final String HOST_URL = "http://tesiro.icastlewar.com/";
	public static final String HOST_URL = "http://aidedangan.tesiro.com/";

	/**
	 * 首次登陆验证目录
	 */
	public final static String RES_FIRST_DATA = "/data/data/com.wolfstreet.wsonline/first/";

	/**
	 * app文件夹
	 */
	public static String APP_PATH = "/icookie/";

	/**
	 * zip下载路径(大文件存储路径)
	 */
	public static String DOWNLOAD_PATH = "/icookie/download/";

	/**
	 * 图片缓存路径(sd卡)
	 */
	public static String IMG_PATH = "/icookie/temp/";

	/**
	 * 图片缓存路径(data目录)
	 */
	public static String IMG_APP_PATH = "/data/data/com.wolfstreet.wsonline/temp/";

	/**
	 * 照片存储路径(data目录)
	 */
	public static String IMG_CAPTURE_PATH = "/data/data/com.wolfstreet.wsonline";

	/**
	 * 当前接入点uri
	 */
	public static final Uri PREFERRED_APN_URI = Uri
			.parse("content://telephony/carriers/preferapn");

	/**
	 * 普通网络连接超时时间 5秒
	 */
	public final static int MAX_CONNECTION_TIMEOUT = 5 * 1000;

	/**
	 * 普通网络读取超时时间 5秒
	 */
	public final static int MAX_READ_TIMEOUT = 5 * 1000;

	/**
	 * 获取JSONObject
	 */
	public static final int RETURN_JSONOBJECT = 300;

	/**
	 * 取得单张图片
	 */
	public static final int RETURN_BITMAP = 301;

	/**
	 * http 返回xml格式
	 */
	public static final int RETURN_XML = 302;

	/**
	 * 获取JSONArray
	 */
	public static final int RETURN_JSONARRAY = 303;

	/**
	 * 网络连接错误
	 */
	public static final int NETWORK_ERROR = 500;

	/**
	 * 网络连接超时
	 */
	public static final int NETWORK_TIMEOUT_ERROR = 520;

	/**
	 * 成功状态码
	 */
	public static final String OK_CODE = "1000";

	/**
	 * 
	 */
	public static final String SINA_KEY = "3217472446";

	/**
	 * 
	 */
	public static final String SINA_SECRET = "f97eaf9611e953f343fce70ea76b5dc1";

	/**
	 * 
	 */
	public static final String SINA_URL = "http://www.njdfwb.com/";

	/**
	 * 
	 */
	public static final String TT_KEY = "801278110";

	/**
	 * 
	 */
	public static final String TT_SECRET = "f1af6f292f5b8735ed7c8f4360a91dda";

	/**
	 * 
	 */
	public static final String TT_URL = "http://www.njdfwb.com/";

	/**
	 * 动画帧数
	 */
	public final static int ANIMATION_NUM = 3;

	/**
	 * 音效资源
	 */
	public static final String sound_Play_Key[] = { "single", "three", };

	/**
	 * 
	 */
	public static final int soundId[] = { R.raw.menu_s, R.raw.menu, };
}
